package com.shunda.pay.dto;

import java.io.Serializable;

/**
 * 分账接收方列表
 */
public class ReceiverDto implements Serializable {

    /**
     * 分账接收方类型1、MERCHANT_ID：商户号，2、PERSONAL_OPENID：个人openid（由父商户APPID转换得到）
     */
    private String type;

    /**
     * 分账接收方账号： 1、类型是MERCHANT_ID时，是商户号（mch_id或者sub_mch_id） 2、类型是PERSONAL_OPENID时，是个人openid
     */
    private String account;

    /**
     * 分账个人接收方姓名
     */
    private String name;

    /**
     * 分账金额，单位为分，只能为整数，不能超过原订单支付金额及最大分账比例金额
     */
    private Long amount;

    /**
     * 手续费，单位为分，只能为整数
     */
    private Integer commission;

    /**
     * 分账的原因描述，分账账单中需要体现
     */
    private String description;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public Integer getCommission() {
        return commission;
    }

    public void setCommission(Integer commission) {
        this.commission = commission;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
